package com.mrd.gtimpframe.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class TGenDeclaInspectRule implements Serializable {
  private String id;

  private String opetion;

  private String value;

  private String status;

  private String creator;

  private Date createTime;

  private String modifier;

  private Date modifyTime;

  private String parentId;

  private String inspectItemId;

  private BigDecimal refGroup;

  private String policyRulesId;

  private static final long serialVersionUID = 1L;

  public TGenDeclaInspectRule(String id, String opetion, String value, String status,
      String creator, Date createTime, String modifier, Date modifyTime, String parentId,
      String inspectItemId, BigDecimal refGroup) {
    this.id = id;
    this.opetion = opetion;
    this.value = value;
    this.status = status;
    this.creator = creator;
    this.createTime = createTime;
    this.modifier = modifier;
    this.modifyTime = modifyTime;
    this.parentId = parentId;
    this.inspectItemId = inspectItemId;
    this.refGroup = refGroup;
  }

  public TGenDeclaInspectRule() {
    super();
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id == null ? null : id.trim();
  }

  public String getOpetion() {
    return opetion;
  }

  public void setOpetion(String opetion) {
    this.opetion = opetion == null ? null : opetion.trim();
  }

  public String getValue() {
    return value;
  }

  public void setValue(String value) {
    this.value = value == null ? null : value.trim();
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status == null ? null : status.trim();
  }

  public String getCreator() {
    return creator;
  }

  public void setCreator(String creator) {
    this.creator = creator == null ? null : creator.trim();
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getModifier() {
    return modifier;
  }

  public void setModifier(String modifier) {
    this.modifier = modifier == null ? null : modifier.trim();
  }

  public Date getModifyTime() {
    return modifyTime;
  }

  public void setModifyTime(Date modifyTime) {
    this.modifyTime = modifyTime;
  }

  public String getParentId() {
    return parentId;
  }

  public void setParentId(String parentId) {
    this.parentId = parentId == null ? null : parentId.trim();
  }

  public String getInspectItemId() {
    return inspectItemId;
  }

  public void setInspectItemId(String inspectItemId) {
    this.inspectItemId = inspectItemId == null ? null : inspectItemId.trim();
  }

  public BigDecimal getRefGroup() {
    return refGroup;
  }

  public void setRefGroup(BigDecimal refGroup) {
    this.refGroup = refGroup;
  }

  public String getPolicyRulesId() {
    return policyRulesId;
  }

  public void setPolicyRulesId(String policyRulesId) {
    this.policyRulesId = policyRulesId;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", opetion=").append(opetion);
    sb.append(", value=").append(value);
    sb.append(", status=").append(status);
    sb.append(", creator=").append(creator);
    sb.append(", createTime=").append(createTime);
    sb.append(", modifier=").append(modifier);
    sb.append(", modifyTime=").append(modifyTime);
    sb.append(", parentId=").append(parentId);
    sb.append(", inspectItemId=").append(inspectItemId);
    sb.append(", refGroup=").append(refGroup);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }

  @Override
  public boolean equals(Object that) {
    if (this == that) {
      return true;
    }
    if (that == null) {
      return false;
    }
    if (getClass() != that.getClass()) {
      return false;
    }
    TGenDeclaInspectRule other = (TGenDeclaInspectRule) that;
    return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
        && (this.getOpetion() == null ? other.getOpetion() == null
            : this.getOpetion().equals(other.getOpetion()))
        && (this.getValue() == null ? other.getValue() == null
            : this.getValue().equals(other.getValue()))
        && (this.getStatus() == null ? other.getStatus() == null
            : this.getStatus().equals(other.getStatus()))
        && (this.getCreator() == null ? other.getCreator() == null
            : this.getCreator().equals(other.getCreator()))
        && (this.getCreateTime() == null ? other.getCreateTime() == null
            : this.getCreateTime().equals(other.getCreateTime()))
        && (this.getModifier() == null ? other.getModifier() == null
            : this.getModifier().equals(other.getModifier()))
        && (this.getModifyTime() == null ? other.getModifyTime() == null
            : this.getModifyTime().equals(other.getModifyTime()))
        && (this.getParentId() == null ? other.getParentId() == null
            : this.getParentId().equals(other.getParentId()))
        && (this.getInspectItemId() == null ? other.getInspectItemId() == null
            : this.getInspectItemId().equals(other.getInspectItemId()))
        && (this.getRefGroup() == null ? other.getRefGroup() == null
            : this.getRefGroup().equals(other.getRefGroup()));
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
    result = prime * result + ((getOpetion() == null) ? 0 : getOpetion().hashCode());
    result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
    result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
    result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
    result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
    result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
    result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
    result = prime * result + ((getParentId() == null) ? 0 : getParentId().hashCode());
    result = prime * result + ((getInspectItemId() == null) ? 0 : getInspectItemId().hashCode());
    result = prime * result + ((getRefGroup() == null) ? 0 : getRefGroup().hashCode());
    return result;
  }
}
